/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package edu.ccut.titan.component.impl.node;

import java.util.List;

import org.apache.log4j.Logger;

import edu.ccut.titan.component.ILogicContext;
import edu.ccut.titan.component.INodeInfo;
import edu.ccut.titan.component.IParameterInfo;

/**
 * {@link INodeInfo} Abstract implementation
 * 
 * @see INodeInfo
 * @author LeslieGu
 * 
 */
public abstract class AbstractNodeInfo implements INodeInfo {

	protected static Logger logger = Logger.getLogger(INodeInfo.class.getName());
	
	private String id;

	private String name;

	private String nextId;

	private String description;

	private List<IParameterInfo> parameters;

	public AbstractNodeInfo(String id, String name, String description,
			String nextId, List<IParameterInfo> parameters) {

		this.id = id;
		this.name = name;
		this.description = description;
		this.nextId = nextId;
		this.parameters = parameters;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNextId() {
		return nextId;
	}

	public void setNextId(String nextId) {
		this.nextId = nextId;
	}

	public List<IParameterInfo> getParameterInfos() {
		return parameters;
	}

	public void setParameterInfos(List<IParameterInfo> parameters) {
		this.parameters = parameters;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public abstract void execute(ILogicContext logicContext) throws Exception;
}
